package com.ruoyi.mes.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 物料计划对象 mtr_plan
 *
 * @author LongAndHao
 * @date 2023-04-04
 */
public class MtrPlan extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 序号 */
    private Long id;

    /** 生产计划ID */
    private Long progDetailId;

    /** 物料编码 */
    private String mtrCode;

    /** 物料计划编号 */
    @Excel(name = "物料计划编号")
    private String code;

    /** 物料名称 */
    @Excel(name = "物料名称")
    private String mtrName;

    /** 物料数量 */
    @Excel(name = "物料数量")
    private Long mtrQuantity;


    /** 物料库存数量 */
    @TableField(exist = false)
    private Long stockQuantity;

    /** 分页显示 - 销售订单信息 */
    @TableField(exist = false)
    private ProOrder proOrder;

    /** 分页显示 - 产品信息 */
    @TableField(exist = false)
    private ProInfo proInfo;

    /** 状态 0 - 未生成 1- 已生成*/
    @Excel(name = "状态")
    private Long status;


    public ProOrder getProOrder() {
        return proOrder;
    }

    public void setProOrder(ProOrder proOrder) {
        this.proOrder = proOrder;
    }

    public ProInfo getProInfo() {
        return proInfo;
    }

    public void setProInfo(ProInfo proInfo) {
        this.proInfo = proInfo;
    }

    public Long getStatus() {
        return status;
    }

    public void setStatus(Long status) {
        this.status = status;
    }

    public Long getStockQuantity() {
        return stockQuantity;
    }

    public void setStockQuantity(Long stockQuantity) {
        this.stockQuantity = stockQuantity;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }

    public Long getProgDetailId() {
        return progDetailId;
    }

    public void setProgDetailId(Long progDetailId) {
        this.progDetailId = progDetailId;
    }

    public String getMtrCode() {
        return mtrCode;
    }

    public void setMtrCode(String mtrCode) {
        this.mtrCode = mtrCode;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public void setMtrName(String mtrName)
    {
        this.mtrName = mtrName;
    }

    public String getMtrName()
    {
        return mtrName;
    }
    public void setMtrQuantity(Long mtrQuantity)
    {
        this.mtrQuantity = mtrQuantity;
    }

    public Long getMtrQuantity()
    {
        return mtrQuantity;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("progDetailId", getProgDetailId())
            .append("mtrId", getMtrCode())
            .append("code",getCode() )
            .append("mtrName", getMtrName())
            .append("mtrQuantity", getMtrQuantity())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
